package leading;

public class TestThread extends Thread{
	String name = "";
	public TestThread(String name){
		this.name = name;
	}
	public void run(){
		for(int i=0;i<5;i++){
			System.out.println(name + i+"线程睡3秒！！");
			
			try {
				Thread.sleep(3000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
	
	public static void main(String[] args) {
		TestThread test= new TestThread("chewl");
		TestThread test1 = new TestThread("bigpower");
		test.start();
		test1.start();
	}
}
